package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyrone
 * @since 2024-10-28
 */
@Getter
@Setter
@TableName("pms_electric_master_data")
@ApiModel(value = "PmsElectricMasterData对象", description = "")
public class PmsElectricMasterData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("父id")
    private Integer parentId;

    @ApiModelProperty("0category 1dir 2 html 3pdf 4pic ")
    private Integer type;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("url logo或者多媒体文件的url")
    private String url;

    @ApiModelProperty("0非vip 1vip")
    private Integer showStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("收藏量")
    private Integer collectNum;

    @ApiModelProperty("浏览量")
    private Integer viewNum;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize = 1;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageNum = 10;

    @TableField(exist = false)
    @ApiModelProperty("当前用户是否收藏 0否1是")
    private Integer currentMemberCollect = 0;

    @TableField(exist = false)
    @ApiModelProperty("子类")
    private List<PmsElectricMasterData> children ;

}
